<%@page import="monster.comm.util.DateUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<%
	String path = request.getContextPath(); 
	String now_time=DateUtil.getDate("yyyy-MM-dd");
%>


<head>
    <title>后台管理</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta http-equiv="imagetoolbar" content="no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
  <script src="<%=path %>/comm/resources/scripts/jquery-1.7.1.min.js"></script>
  <script src="<%=path %>/comm/js/public.js"></script>
 
 <style type="text/css">
body{
    margin: 0px;
    background-image: url('../img/bg.jpg');
    background-position: left top;
    background-repeat: repeat;
}
.u2_normal {
    background-image: url('../img/u2_normal.png');
}

.u2_container {
    position:absolute;
    left:26px;
    top:0px;
    width:1278px;
    height:48px;
}


.schk {
    background-image: url('../img/schk2.png');
}

.u1343_container {
    position:absolute;
    left:286px;
    top:0px;
    width:233px;
    height:52px;
}
.u1345 {
    position:absolute;
    left:467px;
    top:10px;
    width:556px;
    height:23px;
    font-family:Arial;
    text-align:left;
    word-wrap:break-word;
}

.u1348_normal {
    background-image: url('../img/muen_but.png');
}

.u1348_container {
    position:absolute;
    left:4px;
    top:0px;
    width:100px;
    height:28px;
}
.u13488_container {
    position:absolute;
    left:104px;
    top:0px;
    width:100px;
    height:28px;
}
.u13489_container {
    position:absolute;
    left:204px;
    top:0px;
    width:100px;
    height:28px;
}
.u134810_container {
    position:absolute;
    left:304px;
    top:0px;
    width:100px;
    height:28px;
}

#u1348_img {
    position:absolute;
    left:-3px;
    top:-3px;
    width:106px;
    height:34px;
}

.u1349 {
    position:absolute;
    left:0px;
    top:17px;
    
    width:1276px;
    height:16px;    
    
}

.u0_container {
    background-image: url('../img/u824_normal.png');
    position:absolute;
    left:26px;
    top:77px;
    width:1278px;
    height:513px;
}


.u1323_container {
	background-image: url('../img/u1323_normal.png');   
    position:absolute;
    left:0px;
    top:0px;
    width:1279px;
    height:32px;
}
table{
    border-style: solid; border-width: 1px 0;
	border-color: red;
	
}
table .tr3{
	
	background-color: #CEE5F9;
	border-style: solid;border-width: -10px;
    height: 20px;
    text-align:center;
    padding-left: 0px;
    
	
	
}
.tr1{
	background-color: #FFFFFF;
	border-style: solid; border-width: 2px;border-color: black black;
}
.tr2{
	background-color: #CCFFFF;
	border-style: solid; border-width: 2px;border-color: black black;
}



.u1328_container {
  
    position:absolute;
    left:547px;
    top:6px;
    padding:0px;
    float:left;
    width:254px;
    height:22px;
    
    font-size:14px;
	background-color:#CEE5F9;
	background-image:-webkit-gradient(linear, 0 0, 0 100%,
		color-stop(0, #ec9f95),
		color-stop(0.5, #c93f27),
		color-stop(0.5, #af301f),
		color-stop(1, #f87036));
	-webkit-border-radius:3px;
	border:1px solid #CEE5F9;
	-webkit-box-shadow:0 2px 4px rgba(248,112,54,0.7);
    
}
.u1329 {
    position:absolute;
    left:2px;
    top:2px;
    width:250px;
    height:19px;
    
    font-family:Arial;
    text-align:left;
    word-wrap:break-word;
}
.but{
 position:absolute;
 top:1px;
 
 width:100px;
 height:28px;
 font-size:15px;
	background-color:#E4E4E4;
	background-image:-webkit-gradient(linear, 0 0, 0 100%,
		color-stop(0, #ec9f95),
		color-stop(0.5, #c93f27),
		color-stop(0.5, #af301f),
		color-stop(1, #f87036));
	-webkit-border-radius:3px;
	border:1px solid blue;
	-webkit-box-shadow:0 2px 4px rgba(248,112,54,0.7);
    font-family:Arial;font-size:13px;
    font-weight:bold;font-style:normal;
    text-decoration:none;color:#333333;
}
.cur_but{

 position:absolute;
 top:1px;
 
 width:100px;
 height:28px;
 font-size:15px;
	background-color:#FFFFFF;
	background-image:-webkit-gradient(linear, 0 0, 0 100%,
		color-stop(0, #ec9f95),
		color-stop(0.5, #c93f27),
		color-stop(0.5, #af301f),
		color-stop(1, #f87036));
	-webkit-border-radius:3px;
	border:1px solid blue;
	-webkit-box-shadow:0 2px 4px rgba(248,112,54,0.7);
    font-family:Arial;font-size:13px;
    font-weight:bold;font-style:normal;
    text-decoration:none;color:#333333;
}
</style>

<script type="text/javascript">
$(function(){
	//initlist(1);
	 
});

function initlist(type){
	
}

function save(){
   
	var name=$("#name").val();
	var old_password=$("#old_password").val();
	var new_password=$("#new_password").val();
	var re_new_password=$("#re_new_password").val();
	if(new_password!=re_new_password){
		alert("新密码两次输入不一致!");
		return;
	}
	
	$.post(
		'<%=path%>/admin/update_password.jsp',
		{
		STAFF_NAME:name,
		old_password:old_password,
		new_password:new_password
		},
		
		function(data){
			
			if(data.id==100){
				alert("修改成功");
				
			}else if(data.id==-200){
				alert("程序异常，请联系管理员!");
			}else if(data.id==101){
				alert("旧密码不正确，不能修改管理员密码");
			}
		},'json'
	);
}
</script>
</head>

<body > 
<!--head-->
  <div id="head"class='u2_img u2_normal u2_container'>
  		<div class="schk u1343_container"></div><!--end schk-->
		<div id="u1345" class="u1345"  >
			<div id="u1345_rtf">
				<p style="text-align:right;">
					<span style="font-family:华文中宋;font-size:18px;font-weight:bold;font-style:normal;text-decoration:none;color:#990000;">
					四川航空股份有限公司成都维修部航班维修排班系统后台维护</span>
				</p>
			</div>
	</div><!--end .u1345-->
		
  </div><!--end #head--->
  <!--button-->
  <DIV id="u1347container" style="position:absolute; left:26px; top:48px; width:400px; height:28px;; overflow:visible">
    
	<button onclick="select(1,'<%=path%>')" class="but" style="left:3px;" >人员信息管理</button>
	<button onclick="select(2,'<%=path%>')" class="but" style="left:103px;" >人员信息新增</button>
	<button onclick="select(3,'<%=path%>')" class="cur_but" style="left:203px;" >admin密码</button>
	<button onclick="select(4,'<%=path%>')" class="but" style="left:303px;" >数据查询维护</button>
	
	 
  </DIV><!--end button-->
 
  <!--内容-->
  <div id="u0" class="u0_container"   >		
		 
	<div class="u1349">
	 <p style="text-align:center;">
	   <span style="font-family:Arial;font-size:18px;font-weight:bold;font-style:normal;text-decoration:none;color:#333333;">
	          admin密码管理
	   </span>
	</p>
	</div>
	
	<table cellpadding="0" align="center" cellspacing="0"  
	 style="position:absolute;left:350px;top:54px;width:570px;border-color: black;border: solid;border-width:1px;border-color: black;" border="1">
		 
		   
		 <tbody id="">
			
			<tr class="tr1">
			<td >姓名</td>
		 	<td ><input id="name" type="text" value="admin"/></td>		 	
			</tr>
			<tr class="tr2">
			<td >旧密码</td>
		 	<td >
		 		<input id="old_password" type="password" value=""/>
		 	</td>
		 	
			</tr>
			<tr class="tr1">
			<td >新密码</td>
		 	<td >
		 		<input id="new_password" type="password"/>
		 	</td>		 	
			</tr>
			<tr class="tr2">
			<td >新密码确认</td>
		 	<td >
		 		<input id="re_new_password" type="password"/>
		 	</td>		 	
			</tr>
			
			
			</tbody>
		</table>	
				 
		
		<button onclick="save()" style="position:absolute;left:550px;top:434px;width:50px;" >修改</button>
  </div>
<!--内容-->
</body>


